<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的预售订单 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
function checkType(status){
	 if(status==0){
		 $("#status").attr("value",'');
	 }else{
       $("#status").attr("value",status);
	 }
     $("#jvForm").submit();
  }
function HoverLi(m,n,counter){
		for(var i=1;i<=counter;i++){
			g('tb_'+m+i).className='dd_normal';
			g('tbc_'+m+i).className='undis';
		}
		g('tbc_'+m+n).className='dis';
		g('tb_'+m+n).className='';
}
function eidtOrder(orderId,status){
	$.post("../order/editOrder.jspx", {
		'orderId' : orderId,
		'status' : status
	}, function(data) {
		if(data.success){
			location.reload();
		}
	},'json');
}

function addCart(orderId){
	$("#orderId").val(orderId);
    $("#jvForm").attr("action","${base}/cart/add_orderItem1.jspx");
	$("#jvForm").submit();
}

function payOrderAgain(orderId){
	$("#orderId").val(orderId);
    $("#jvForm").attr("action","${base}/pay.jspx");
	$("#jvForm").submit();
}

function deleteOrder(orderId){
	$.post("../order/deleteOrder.jspx", {
		'orderId' : orderId
	}, function(data) {
		if(data.success){
			location.reload();
		}
	},'json');
}

function showHide(pd){
	if(pd==0){
	  $("#J_MoreControl").hide();
	  $("#moreFilter").show();
	  $("#lessFilter").hide();
	}else{
		$("#J_MoreControl").show();
		$("#moreFilter").hide();
		$("#lessFilter").show();
	}
}
</script>
</head>
<body>
[#include "../include/会员中心页头顶栏.html"/]
<div class="w1168">
  [#include "会员中心_导航.html"/]
     <div id="container" class="user_right">
         <div class="user_title_r">
			<div class="user_title_l">我的预售订单</div>
        </div>
        <div class="clear10"></div>
        <div class="orderlist" style=" font-size:12px; font-family:Arial; color:#4b4b4b;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
                <td width="40" align="center" bgcolor="#f0f0f0">&nbsp;</td>
                <td width="100" height="32" bgcolor="#f0f0f0">全选&nbsp;&nbsp;&nbsp;删除</td>
                <td bgcolor="#f0f0f0">预约商品</td>
                <td width="100" align="center" bgcolor="#f0f0f0">预约编号</td>
                <td width="70" align="center" bgcolor="#f0f0f0">预约方式</td>
                <td width="100" align="center" bgcolor="#f0f0f0">预约时间</td>
                <td width="100" align="center" bgcolor="#f0f0f0">状态</td>
                <td width="110" align="center" bgcolor="#f0f0f0">操作</td>
              </tr>
             </table>
            
            <div style="line-height:40px; padding:10px;">
            [#list list as yushou]
            [#if yushou.productid.yushou??&&yushou.productid.yushou==true&&yushou.productid.yushoubegindate??&&yushou.productid.yushoubegindate lte .now&&yushou.productid.yushouenddate??&&yushou.productid.yushouenddate lte .now&&yushou.ystatus==1]
            <a href="">商品,${yushou.productid.name},去付尾款</a>
            [#elseif yushou.productid.yushou??&&yushou.productid.yushou==true&&yushou.productid.yushoubegindate??&&yushou.productid.yushoubegindate lte .now&&yushou.productid.yushouenddate??&&yushou.productid.yushouenddate gt .now&&yushou.ystatus==0]
            <a href="">商品,${yushou.productid.name},去付定金</a>
            [#else]
            <div class="clear"></div>
            ${yushou.productid.name}商品预售活动已经结束
            [/#if]
            [/#list]
            </div>
        </div>
     </div>
     <div class="clear20"></div>
 </div>
 [#include "../include/页脚信息栏.html"/]
</body>
</html>